//
//  ViewController.m
//  Btnfun
//
//  Created by student on 13-12-5.
//  Copyright (c) 2013年 student. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)btnPressed:(id)sender {
    UIButton *btn=(UIButton *)sender;
    NSString *bunName=[btn titleForState:UIControlStateNormal];
    self.Label.text=[NSString stringWithFormat:@"%@被点击了",bunName];

}
@end
